<!--综合评价统计-->
<div class="OutDiv">
  <!--主页面-->
  <div class="mainPage" [hidden]="mainStatus !== 1">
    <div class="exciseTableDiv">
      <div style="margin:20px 0;overflow: hidden">
        <div class="fl-l">
          <button nz-button nzType="primary" (click)="edit()" style="margin-right:10px;">设置
          </button>
          <nz-dropdown [nzTrigger]="'hover'" class="m-r-sm">
            <button nz-dropdown nz-button nzType="primary"><i nz-icon nzType="upload" nzTheme="outline"></i>
              导出
            </button>
            <ul nz-menu>
              <li nz-menu-item (click)="exportShow(1)">导出选中</li>
              <li nz-menu-item (click)="exportShow(3)">导出全部</li>
            </ul>
          </nz-dropdown>
        </div>
        <div class="labeidiv fl-r">
          <label>
            <span>学年：</span>
            <nz-select style="width: 130px; margin-right: 20px" nzAllowClear nzPlaceHolder="请选择" [(ngModel)]="searchObj.schoolYear" (ngModelChange)="yearSearchChange($event)">
              <nz-option *ngFor="let item of yearListSearch" [nzLabel]="item.schoolYear" [nzValue]="item.schoolYear"></nz-option>
            </nz-select>
          </label>
          <label>
            <span>学期：</span>
            <nz-select style="width: 130px; margin-right: 20px" nzAllowClear nzPlaceHolder="请选择" [(ngModel)]="searchObj.semesterId">
              <nz-option *ngFor="let item of semestSearch" [nzLabel]="item.semesterName" [nzValue]="item.id"></nz-option>
            </nz-select>
          </label>
          <label>
            <span>课程编号：</span>
            <input nz-input [(ngModel)]="searchObj.number" placeholder="请输入"/>
          </label>
          <label>
            <span>课程名称：</span>
            <input nz-input [(ngModel)]="searchObj.name" placeholder="请输入"/>
          </label>
          <label>
            <span>任课教师：</span>
            <input nz-input [(ngModel)]="searchObj.teacherName" placeholder="请输入"/>
          </label>
          <label>
            <!--<span>授课班级：</span>-->
            <!--<input nz-input [(ngModel)]="searchObj.classesName" placeholder="请输入"/>-->
            <button nz-button style="margin-right:10px;" nzType="primary" (click)="clickSearch()">查询
            </button>
            <button style="margin-right: 0" nz-button nzType="default" (click)="resetSearch()">重置</button>
          </label>
        </div>
      </div>
      <div class="w100">
        <ng-template #totalTemplate let-total>总共 {{ pageInfo.totalRecords ? pageInfo.totalRecords : 0 }}条
        </ng-template>
        <nz-table
          #exciseBankTable
          nzBordered
          [nzData]="allList"
          [nzFrontPagination]="false"
          [nzShowPagination]="true"
          [nzPageIndex]="pageInfo.first"
          [nzTotal]="pageInfo.totalRecords"
          [nzShowTotal]="totalTemplate"
          [nzPageSize]="pageInfo.rows"
          [nzLoadingDelay]="1"
          [nzPageSizeOptions]="[10,20,30,50,100]"
          [nzShowQuickJumper]="true"
          [nzShowSizeChanger]="true"
          (nzPageIndexChange)="searchPageIndex($event)"
          (nzPageSizeChange)="searchPageSize($event)"
          (nzCurrentPageDataChange)="currentPageDataChange($event)"
          [nzWidthConfig]="nzWidthConfigs"
          [nzScroll]="{x: '1950px'}"
        >
          <thead>
          <tr>
            <th class="tableCheck"
                nzShowCheckbox
                [(nzChecked)]="isAllCheck"
                [nzIndeterminate]="isIndeterminate"
                (nzCheckedChange)="checkAll($event)"
            ></th>
            <th>序号</th>
            <th>学年</th>
            <th>学期</th>
            <th>课程编号</th>
            <th>课程名称</th>
            <th>课时</th>
            <th>课程类型</th>
            <th>开课部门</th>
            <th>任课教师</th>
            <th>工号</th>
            <th>职称</th>
            <!--<th>授课系部</th>-->
            <!--<th>授课专业</th>-->
            <!--<th>授课班级</th>-->
            <th>上课地点</th>
            <th>学生评价平均分</th>
            <th>系部评价平均分</th>
            <th>督导评价平均分</th>
            <th style="width:120px;" nzRight="0px">教学综合评分</th>
          </tr>
          </thead>
          <tbody>
          <tr *ngFor="let data of exciseBankTable.data; let i = index">
            <td
              nzShowCheckbox
              [(nzChecked)]="mapOfCheckedId[data.id]"
              (nzCheckedChange)="refreshStatus()"
            ></td>
            <td>{{ i + 1}}</td>
            <td>{{ data.schoolYear}}</td>
            <td>{{ data.semesterName}}</td>
            <td>{{ data.number}}</td>
            <td>{{ data.name}}</td>
            <td>{{ data.sectionCount}}</td>
            <td>{{ data.type}}</td>
            <td>{{ data.startDeptName}}</td>
            <td>{{ data.teacherName}}</td>
            <td>{{ data.teacherNumber}}</td>
            <td>{{ data.teacherTitle}}</td>
            <!--<td>{{ data.startDeptName}}</td>-->
            <!--<td>{{ data.majorName}}</td>-->
            <!--<td>{{ data.classesName}}</td>-->
            <td>{{ data.address}}</td>
            <td>{{ data.studentScore != null?data.studentScore:'-'}}</td>
            <td>{{ data.deptScore != null?data.deptScore:'-'}}</td>
            <td>{{ data.schoolScore != null?data.schoolScore:'-'}}</td>
            <td nzRight="0px">{{ data.score != null?data.score:'-'}}</td>
          </tr>
          </tbody>
        </nz-table>
      </div>
    </div>
  </div>
  <!--详情列表页面-->
  <div class="addPage" *ngIf="mainStatus === 2">
    <div style="height: 50px;justify-content:space-between" class="flex w100">
      <div>设置</div>
      <span class="fl-r operaFont" (click)="back(1)">
        返回上一级<i class="fa fa-reply m-l-sm"></i>
      </span>
    </div>
    <div class="w100">
      <div class="item">
        <div class="title">学生评价平均分计算方式</div>
        <div class="params">
            学生评价平均分：最高分去掉
            <nz-input-number [nzMin]="0" [nzMax]="100" [nzStep]="1" style="width:80px;margin:0 10px;" nz-input [(ngModel)]="settingObj.studentHeight"></nz-input-number>%，
            最低分去掉<nz-input-number [nzMin]="0" [nzMax]="100" [nzStep]="1" style="width:80px;margin:0 10px;"  nz-input [(ngModel)]="settingObj.studentLow"></nz-input-number>%，计算平均分
        </div>
      </div>
      <div class="item">
        <div class="title">系部评价平均分计算方式</div>
        <div class="params">
            系部评价平均分：最高分去掉
            <nz-input-number [nzMin]="0" [nzMax]="100" [nzStep]="1" style="width:80px;margin:0 10px;" nz-input [(ngModel)]="settingObj.deptHeight"></nz-input-number>%，
            最低分去掉<nz-input-number [nzMin]="0" [nzMax]="100" [nzStep]="1" style="width:80px;margin:0 10px;"  nz-input [(ngModel)]="settingObj.deptLow"></nz-input-number>%，计算平均分
        </div>
      </div>
      <div class="item">
        <div class="title">督导评价平均分计算方式</div>
        <div class="params">
            督导评价平均分：最高分去掉
            <nz-input-number [nzMin]="0" [nzMax]="100" [nzStep]="1" style="width:80px;margin:0 10px;" nz-input [(ngModel)]="settingObj.schoolHeight"></nz-input-number>%，
            最低分去掉<nz-input-number [nzMin]="0" [nzMax]="100" [nzStep]="1" style="width:80px;margin:0 10px;"  nz-input [(ngModel)]="settingObj.schoolLow"></nz-input-number>%，计算平均分
        </div>
      </div>
    </div>
    <div style="width:150px;margin:0 auto;margin-top:40px;">
      <button nz-button nzType="default" (click)="back(1)" style="margin-right:10px;">取消</button>
      <button nz-button nzType="primary" (click)="saveConfig()">确定</button>
    </div>
  </div>
</div>
